// 调动管理接口
import request from "@/utils/request";

// 调动管理-查询调动列表
export function transferList(data) {
  return request({
    url: `/system/jobtrasfer/list?pageNum=${data.pageNum}&pageSize=${data.pageSize}`,
    method: "POST",
    data,
  });
}


// 新增 编辑保存 提交 岗位调动管理 post
// /system/jobtrasfer/add

export function newTransfer(data) {
  return request({
    url: "/system/jobtrasfer/add",
    method: "POST",
    data,
  });
}

// 调动管理-查询调动详情 员工id查询
export function transferInfoId(data) {
  return request({
    url: `/system/info/getDetailById?id=${data.id}`,
    method: "GET",
    data,
  });
}

// 调动查询列表详情接口
// /system/jobtrasfer/{id}

export function transferInfo(id) {
  return request({
    url: `/system/jobtrasfer/${id}`,
    method: "GET"
  });
}

// /system/jobtrasfer/auditInfo

// 调动申请审批
export function transferApi(data,url) {
  return request({
    url: `${url}`,
    method: "post",
    data,
  })
}